package com.hfjy.bigdata.service;

import com.github.pagehelper.PageHelper;
import com.hfjy.bigdata.bean.Goods;
import com.hfjy.bigdata.mapper.QuizMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QuizService {
    @Resource
    private QuizMapper goodsMapper;
    public List<Goods> getQuizs(int page){
        PageHelper.startPage(page,10);
        return goodsMapper.getQuizs();
    }
}
